import {Component, OnInit} from '@angular/core';
import {_HttpClient, Menu, MenuService} from '@delon/theme';

@Component({
    selector: 'app-dashboard',
    templateUrl: './dashboard.component.html',
})
export class DashboardComponent implements OnInit {

    url_info = 'Admin/baseinfo';

    userall = 0;
    todayuser = 0;
    canusemsg = 0;
    usemsg = 0;
    constructor(
        private http: _HttpClient,
    ) {
    }

    ngOnInit() {

        this.http.get(this.url_info).subscribe(res => {
          this.userall = res['alluser'];
          this.todayuser = res['todayuser'];
          this.canusemsg = res['remmsg'];
          this.usemsg = res['usemsg'];
        });
    }


}
